							
<!DOCTYPE html>
<html lang="zh-cn">
	<head>
	    <meta charset="utf-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
	    <#include "/common/meta.ftl"/>
	    <#include "/common/form.ftl"/>
		<script>
		$(function(){
			$("#form").validate({
					rules: {
						
					},
					errorElement: "div",
					errorPlacement: function(error, element) {
						error.appendTo($(element).parent());
						$(element).parent().addClass("has-error");
						$(error).addClass("help-block alert-danger");
					},
					success: function(label) {
						$(label).parent().removeClass("has-error");
						$(label).remove();
					}
				})
			});
			function save(){
				if($("#form").valid()){
					$("#form").submit();
				}
			}
		</script>
	</head>
	<body style="padding:5px;">
		<div class="panel panel-primary">
			<div class="panel-heading" style="">
				<strong>
					<i class="icon-pencil"></i> feedback
				</strong>
			</div>
			<div class="panel-body" style="padding:15px;padding-top:15px;">
			
			<form id="form" class="form-horizontal" role="form" method='post' action="./feedbackSave">
			<input type="hidden" id="feedbackId" name="feedbackId" value="${ feedbackId }"/>
				
				<fieldset>
				<legend><i class="icon icon-file-text-o"></i> 反馈建议</legend>
					<div class="">
							<table  class="table table-bordered table-condensed">
						  		<tr style="">
						    		<th width="100" style="text-align:center;background-color:#eee;" >姓名</th>
						    		<td >
						    			<input type='text'  name="feedbackName"  id='feedbackName' value='${ formData.feedbackName!'' }' class='form-control' />
						    		</td>
						    		<th width="140" style="text-align:center;background-color:#eee;" >意见发布时间</th>
						    		<td>	
						    			<input type='text'  name="fdate"  id='fdate' value='${ formData.fdate!'' }' class='form-control' />
						    		</td>
						  		</tr>
						  		<tr style="">
						    		<th width="100" style="text-align:center;background-color:#eee;" >联系方式</th>
						    		<td colspan="3">
						    			<input type='text'  name="telephone"  id='telephone' value='${ formData.telephone!'' }' class='form-control' />
						    		</td>
						  		</tr>
						  		<tr style="">
						    		<th width="100" style="text-align:center;background-color:#eee;" >意见内容</th>
						    		<td colspan="3">
						    		
						    		<textarea id="fcontent" name="fcontent" type="text/plain" style="width:100%;height:200px;">${formData.fcontent!''}</textarea>
						    		</td>
						  		</tr>
						  		
							</table>
						</div>	
				</fieldset>

				<div style="margin-top:5px;padding:5px;text-align:center;">
					<button class="btn btn-primary" type="button" onclick="save();"><i class="icon icon-save"></i> 保存</button>
					<button class="btn" type="button" onclick="history.go(-1);"><i class="icon icon-reply"></i> 返回</button>
				</div>
			</form>
		  	</div>
		</div>
	</body>
</html>